<head lang="zh">
  <meta charset="utf-8">
  <link rel="stylesheet" href="/assets/fonts/feather/feather.min.css">
  <link rel="stylesheet" href="/assets/css/theme.css">
  <link rel="shortcut icon" href="/assets/i/favicon.png" type="image/x-icon">
  <title>{% block title %}首页{% endblock title %}</title>
  {% block css %}{% endblock css %}

</head>
<body>
<div class="wrapper">
    <!-- 菜单栏 start -->
    <nav id="menubar" class="menubar menubar-sticky">
        <a class="menubar-brand" href="http://op.kratos.fun/index">Op Manager 后台管理</a>
        <span class="menubar-close"><i class="fe fe-x"></i></span>

        <div class="menubar-content">
            <div class="menubar-content">
                <ul class="menubar-nav">

                    <li class="menubar-item  {% block page0_active %}{% endblock %}">
                        <a href="/index" class="menubar-link"><i class="fe fe-home"></i> <span>首页</span></a>
                    </li>

                    <li class="menubar-item">
                        <a href="#page0" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-server"></i> <span>资产管理</i></span></a>
                        <ul id="page0" class="menubar-dropdown list-unstyled collapse {% block page0_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page0.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/addhost"><i class="fe fe-upload-cloud"></i>添加主机</a></li>
                            <li class="menubar-item {% block page0.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/hostmanager"><i class="fe fe-list"></i>资产列表</a></li>
                            <li class="menubar-item {% block page0.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/hostlogs"><i class="fe fe-book-open"></i>资产更新日志</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="#page1" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-airplay"></i> <span>主机管理</i></span></a>
                        <ul id="page1" class="menubar-dropdown list-unstyled collapse {% block page1_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page1.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/hostsetting"><i class="fe fe-settings"></i>主机设置</a></li>
                            <li class="menubar-item {% block page1.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/addapp"><i class="fe fe-corner-up-right"></i>部署应用</a></li>
                            <li class="menubar-item {% block page1.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/config"><i class="fe fe-layers"></i>配置管理</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="#page2" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-codepen"></i> <span>应用操作</span></a>
                        <ul id="page2" class="menubar-dropdown list-unstyled collapse {% block page2_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page2.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/Webssh"><i class="fe fe-code"></i>远程控制</a></li>
                            <li class="menubar-item {% block page2.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/ansible"><i class="fe fe-command"></i>ansible</a></li>
                            <li class="menubar-item {% block page2.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/mysql"><i class="fe fe-database"></i>mysql</a></li>
                            <li class="menubar-item {% block page2.4_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/crontab"><i class="fe fe-clock"></i>定时调度</a></li>
                            <li class="menubar-item {% block page2.5_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/firewall"><i class="fe fe-shield"></i>防火墙</a></li>
                        </ul>
                    </li>
                    
                    <li class="menubar-item">
                        <a href="#page3" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-activity"></i> <span>应用监控</span></a>
                        <ul id="page3" class="menubar-dropdown list-unstyled collapse {% block page3_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page3.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/monitor_linux"><i class="fe fe-cpu"></i>系统监控</a></li>
                            <li class="menubar-item {% block page3.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/monitor_zabbix"><i class="fe fe-book"></i>zabbix监控</a></li>
                            <li class="menubar-item {% block page3.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/monitor_monit"><i class="fe fe-chevron-up"></i>monit监控</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="#page4" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-file"></i> <span>日志统计</span></a>
                        <ul id="page4" class="menubar-dropdown list-unstyled collapse {% block page4_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page4.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/logs_nginx"><i class="fe fe-file-text"></i>nginx日志</a></li>
                            <li class="menubar-item {% block page4.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/logs_tomcat"><i class="fe fe-file-plus"></i>tomcat日志</a></li>
                            <li class="menubar-item {% block page4.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/logs_system"><i class="fe fe-file"></i>系统日志</a></li>
                            <li class="menubar-item {% block page4.4_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/logs_user"><i class="fe fe-file-minus"></i>用户日志</a></li>
                            <li class="menubar-item {% block page4.5_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/logs_install"><i class="fe fe-file-minus"></i>安装日志</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="#page5" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-user"></i> <span>用户管理</i></span></a>
                        <ul id="page5" class="menubar-dropdown list-unstyled collapse {% block page5_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page5.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/user_manager"><i class="fe fe-user-check"></i>用户管理</a></li>
                            <li class="menubar-item {% block page5.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/users_manager"><i class="fe fe-users"></i>用户组管理</a></li>
                            <li class="menubar-item {% block page5.3_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/user_setting"><i class="fe fe-user"></i>个人设置</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="#page6" data-toggle="collapse" class="menubar-link collapsed"><i class="fe fe-chrome"></i> <span>域名管理</span></a>
                        <ul id="page6" class="menubar-dropdown list-unstyled collapse {% block page6_show %}{% endblock %}" data-parent="#menubar">
                            <li class="menubar-item {% block page6.1_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/domains"><i class="fe fe-link-2"></i>域名列表</a></li>
                            <li class="menubar-item {% block page6.2_active %}{% endblock %}"><a class="menubar-link align-items-end" href="/domains_host"><i class="fe fe-at-sign"></i>主机记录</a></li>
                        </ul>
                    </li>

                    <li class="menubar-item">
                        <a href="/logout" class="menubar-link"><i class="fe fe-log-out"></i> <span>退出</span></a>
                    </li>
                    
                </ul>
            </div>
        </div>
    </nav>
    <!-- 菜单栏 End -->

    <div class="main">
    <!-- 顶栏 -->
    <nav class="navbar navbar-expand navbar-light bg-white">
            <a class="menubar-toggle d-flex mr-2"><i class="hamburger align-self-center"></i></a>

            <div class="navbar-collapse collapse mr-3">
                <ul class="navbar-nav ml-auto">

                    <!-- 新消息 -->
                    <li class="nav-item dropdown">
                        <a class="nav-icon dropdown-toggle" href="#" id="messagesDropdown" data-toggle="dropdown">
                            <div class="position-relative">
                                <i class="fe fe-message-circle"></i>
                                <span class="indicator">3</span>
                            </div>
                        </a>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right py-0" aria-labelledby="messagesDropdown">
                            <div class="dropdown-menu-header">
                                <div class="position-relative">
                                    新消息
                                </div>
                            </div>
                            <div class="list-group">
                                <a href="#" class="list-group-item">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col-10 pl-2">
                                            <div class="text-dark">kratos1 <span class="text-muted small ml-1">2h ago</span></div>
                                            <div class="text-muted small mt-1">test1。</div>
                                        </div>
                                    </div>
                                </a>
                                <a href="#" class="list-group-item">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col-10 pl-2">
                                            <div class="text-dark">kratos2 <span class="text-muted small ml-1">4h ago</span></div>
                                            <div class="text-muted small mt-1">test2。</div>
                                        </div>
                                    </div>
                                </a>
                                <a href="#" class="list-group-item">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col-10 pl-2">
                                            <div class="text-dark">kratos3 <span class="text-muted small ml-1">5h ago</span></div>
                                            <div class="text-muted small mt-1">test3。</div>
                                        </div>
                                    </div>
                                </a>
                            </div>
                            <div class="dropdown-menu-footer">
                                <a href="#" class="text-muted">查看所有</a>
                            </div>
                        </div>
                    </li>
                    
                    <!-- 系统通知 -->
                    <li class="nav-item dropdown">
                        <a class="nav-icon dropdown-toggle" href="#" id="alertsDropdown" data-toggle="dropdown">
                            <div class="position-relative">
                                <i class="fe fe-bell"></i>
                            </div>
                        </a>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right py-0" aria-labelledby="alertsDropdown">
                            <div class="dropdown-menu-header">
                                系统通知
                            </div>
                            <div class="list-group">
                                <a href="#" class="list-group-item">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col-10">
                                            <div class="text-dark">系统更新 <span class="text-muted small ml-1">2h ago</span></div>
                                            <div class="text-muted small mt-1">新版本 v7.4.14</div>
                                        </div>
                                    </div>
                                </a>
                                <a href="#" class="list-group-item">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col-10">
                                            <div class="text-dark">登录 IP: 192.186.201.1 <span class="text-muted small ml-1">8h ago</span></div>
                                        </div>
                                    </div>
                                </a>
                            </div>
                            <div class="dropdown-menu-footer">
                                <a href="#" class="text-muted">查看所有</a>
                            </div>
                        </div>
                    </li>
                    
                    <!-- 个人 -->
                    <li class="nav-item dropdown">
                        <a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-toggle="dropdown"><i class="fe fe-settings"></i></a>
                        <a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-toggle="dropdown"><img src="/assets/i/favicon.png" class="avatar img-fluid rounded-circle mr-1" alt="user" /><span class="text-dark" id="getuser"></span></a>
                        <div class="dropdown-menu dropdown-menu-right">
                            <a class="dropdown-item" href="/user_setting">个人信息</a>
                            <a class="dropdown-item" href="/user_manager">用户管理</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="https://gitee.com/KratosMax/OpManager/tree/master">帮助</a>
                            <a class="dropdown-item" href="/logout">退出</a>
                        </div>
                    </li>
                    
                </ul>
            </div>
    </nav>
    <!-- 顶栏 End -->

    <!-- 主界面 start -->
    <main class="content">
        {% block main_content %}
        404
        {% endblock main_content %}
    </main>
    <!-- 主界面 end -->

        <footer class="footer">
            <div class="container-fluid">
                <div class="row text-muted">
                    <div class="col-6 text-left">
                        <ul class="list-inline">
                            <li class="list-inline-item">
                                <a class="text-muted" href="https://github.com/dwosc/dunwoo-admin">前端</a>
                            </li>
                            <li class="list-inline-item">
                                <a class="text-muted" href="https://docs.djangoproject.com/zh-hans/3.0">后端</a>
                            </li>
                            <li class="list-inline-item">
                                <a class="text-muted" href="https://gitee.com/KratosMax/OpManager">文档</a>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="col-6 text-right">
                        <p class="mb-0">
                            &copy; 2020 - Kratos Max : <a href="https://github.com/Kratosmax" target="_blank" class="text-muted">GitHub</a>
                            <a href="https://gitee.com/KratosMax" target="_blank" class="text-muted">Gitee</a>
                        </p>
                    </div>
                </div>
            </div>
        </footer>
    </div>
    <!-- End Main -->

</div><!-- End Wrapper -->

<div class="back-to-top"><i class="fe fe-arrow-up"></i></div>
<script src="/assets/libs/jquery/jquery.min.js"></script>
<script src="/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/assets/libs/chart.js/Chart.min.js"></script>
<script src="/assets/js/theme.js"></script>

<script >
function getCookie(name){
    var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
    if(arr=document.cookie.match(reg))
    return unescape(arr[2]);
    else
    return null;
}
document.getElementById("getuser").innerHTML = getCookie('user')
</script>

{% block script %}
{% endblock script %}

</body>
</html>